<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<jsp:include page="head.htm" />
</head>
<body>
	<jsp:include page="loggedIn.jsp" />
	<jsp:include page="isAdmin.jsp" />
	<div id="head">
		<h1>Zeiterfassung</h1>
	</div>
	<jsp:include page="menu.jsp" />
	
	<div id="content">
		<a href="EditKrankheit.html" class="button">neue Krankheitstage anlegen</a>
		<br>
		<br>
		<h2>
			<c:out value="${title}" />
		</h2>
		<p>
			<c:out value="${message}" />
		</p>
		<table cellpadding="0" cellspacing="0" class="atag">
			<tr>
				<th></th>
				<th></th>
				<th>Name</th>
				<th>Vorname</th>
				<th>Krank von</th>
				<th>Krank bis</th>

			</tr>
			<c:forEach items="${krankheit}" var="krankheit">
				<tr>
					<td><a
						href="EditKrankheit.html?id=<c:out value="${krankheit.id}"/>">
							<img src="images/edit_s.png"
							alt="Icon - Bearbeite Krankheit" />
					</a></td>
					<td>
					<a href="DeleteKrankheit.html?id=<c:out value="${krankheit.id}" />&m_id=<c:out value="${krankheit.mitarbeiter.id}" />"/>
					<img src="images/delete.png" alt="Icon - Lösche Urlaubsantrag"/>
					</td>

					<td>
							<c:out value="${krankheit.mitarbeiter.mit_name}" />
					</td>
					<td>
							<c:out value="${krankheit.mitarbeiter.mit_vorname}" />
					</td>
					<td><fmt:formatDate value="${krankheit.krankheit_von}" type="date" pattern="dd.MM.yyyy" /></td>
					<td><fmt:formatDate value="${krankheit.krankheit_bis}" type="date" pattern="dd.MM.yyyy" /></td>
					
				</tr>
			</c:forEach>
		</table>
	</div>
</body>
</html>